package com.hndfsj.framework.common;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.web.context.request.RequestContextHolder;


public class ReturnJsonList extends MReturnObject {
	public static final String SUCCESS = "success";
	public static final String ERROR = "error";
	public static final String TIMEOUT = "hndfsj_app_session_timeout";// session超时
	public static final String FATAL_ERROR = "fatalError";
	public static final String WARNING = "warning";

	private Object respList;// 封装好的返回对象数据模型（可能是json对象或者json数组，亦或者是一个value）
	private Integer itemCount;
	private int pageIndex; // 当前页（第一页=1）
	private int recCount; // 总记录数
	private int pageSize; // 每页行数
	private String sortCol; // 排序字段
	private String sortOrder; // 排序方式
	private int pages;// 总页数
	private boolean firstPage;// 第一页？
	private boolean lastPage;// 最后一页？
	private boolean hasNext;// 是否有下一页？
	private boolean hasPrev;// 是否有上一页？
	public ReturnJsonList(String respCode, Object object) {
		super(respCode,object);
	}
	public Object getRespList() {
		return respList;
	}

	public void setRespList(Object respList) {
		this.respList = respList;
	}

	public Integer getItemCount() {
		return itemCount;
	}

	public void setItemCount(Integer itemCount) {
		this.itemCount = itemCount;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public int getRecCount() {
		return recCount;
	}

	public void setRecCount(int recCount) {
		this.recCount = recCount;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public String getSortCol() {
		return sortCol;
	}

	public void setSortCol(String sortCol) {
		this.sortCol = sortCol;
	}

	public String getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public boolean isFirstPage() {
		return firstPage;
	}

	public void setFirstPage(boolean firstPage) {
		this.firstPage = firstPage;
	}

	public boolean isLastPage() {
		return lastPage;
	}

	public void setLastPage(boolean lastPage) {
		this.lastPage = lastPage;
	}

	public boolean isHasNext() {
		return hasNext;
	}

	public void setHasNext(boolean hasNext) {
		this.hasNext = hasNext;
	}

	public boolean isHasPrev() {
		return hasPrev;
	}

	public void setHasPrev(boolean hasPrev) {
		this.hasPrev = hasPrev;
	}

	
	
	
	
}
